package fr.sedoo.commons.client.event;

import java.util.HashMap;

import com.google.gwt.event.shared.GwtEvent;

public class ParameterLoadedEvent extends GwtEvent<ParameterLoadedEventHandler>{

	HashMap<String, String> parameters;
	
    public static final Type<ParameterLoadedEventHandler> TYPE = new Type<ParameterLoadedEventHandler>();

    public ParameterLoadedEvent(HashMap<String, String> parameters)
    {
    	this.parameters = parameters;
    }
    
	@Override
    protected void dispatch(ParameterLoadedEventHandler handler) {
            handler.onNotification(this);
    }

    @Override
    public com.google.gwt.event.shared.GwtEvent.Type<ParameterLoadedEventHandler> getAssociatedType() {
            return TYPE;
    }
    
    public HashMap<String, String> getParameters() {
		return parameters;
	}

}